package com.xuecheng.manage_cms.service;

import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.manage_cms.dao.SysDicthinaryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Aniymx on 2018/12/29 21:27.
 */
@Service
public class SysDicthinaryService {
    @Autowired
    private SysDicthinaryRepository sysDicthinaryRepository;

    public SysDictionary getByType(String type) {
        return sysDicthinaryRepository.findByDType(type);
    }
}
